﻿using NET6.WebAPI.Enums;

namespace NET6.WebAPI.Attributes
{
    /// <summary>
    /// 异常响应特性: 用于存储异常枚举值
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class ExceptionResponseAttribute : Attribute
    {
        public ExceptionResponseCode Value { get; }

        public ExceptionResponseAttribute(ExceptionResponseCode value)
        {
            Value = value;
        }
    }
}
